var mongoose = require('mongoose')
var Schema = mongoose.Schema

var newsSchema = new Schema({
    'newsId': Number,
    'newsTitle': String,
    'newsContent': String,
    'newsDate': String,
    'newsAuthor': String,
    'newsPageView': Number,
    'haveSeen': Number,
    'classtify': String
})

module.exports = mongoose.model('New', newsSchema, 'news')